package com.online_exam.service;

import com.github.pagehelper.PageInfo;
import com.online_exam.domain.ExamPaperAnswer;
import com.online_exam.domain.User;
import com.online_exam.viewmodel.student.exampaper.ExamPaperAnswerPageVM;
import com.online_exam.viewmodel.student.exampaper.ExamPaperSubmitVM;

public interface ExamAnswerService {
    int insert(ExamPaperAnswer examPaperAnswer);

     void examPaperAnswerFromVM(ExamPaperSubmitVM examPaperSubmitVM, User user);

    ExamPaperAnswer selectById(Integer id);
    PageInfo<ExamPaperAnswer> studentPage(ExamPaperAnswerPageVM model);

    ExamPaperSubmitVM examPaperAnswerToVM(Integer id);
}
